# source this file to activate the environment,
# or use "make env" to start a sub-shell

# components managed by ansible
export KAFL_ROOT="{{ kafl_install_root }}"
export QEMU_ROOT="{{ qemu_root }}"
export LIBXDC_ROOT="{{ libxdc_root }}"
export CAPSTONE_ROOT="{{ capstone_root }}"
export RADAMSA_ROOT="{{ radamsa_root }}"
export GHIDRA_ROOT="{{ ghidra_root }}"
export EXAMPLES_ROOT="{{ examples_root }}"
{% if install_nyx_packer %}
export PACKER_ROOT="{{ nyx_packer_root }}"
{% endif %}

# workspace defaults
export KAFL_WORKSPACE="{{ workspace_root }}"
export KAFL_WORKDIR="/dev/shm/kafl_{{ ansible_user_id }}"

# kAFL configuration override (optional)
# export KAFL_CONFIG_FILE=""

# activate python venv
source $KAFL_ROOT/.venv/bin/activate
